package main;




import main.states.Menu;
import main.states.Play;

import org.newdawn.slick.GameContainer;

import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;



public class GamePanel extends StateBasedGame{

	//states
	public static final int menu = 0;
	public static final int play = 1;
	
	public GamePanel(String name) throws SlickException {
		super(name);
		
		this.addState(new Menu(menu));
		this.addState(new Play(play));
	}


	@Override
	public void initStatesList(GameContainer gc) throws SlickException {
		this.getState(menu).init(gc,this);
		this.getState(play).init(gc,this);
		this.enterState(menu);
		
	}



	
}

